@import "~assets/styles/_bootstrap";

.goods_canvas_box{
  #goods_qrcode {
    position: fixed;
    left: 0;
    top: 0;
    z-index: -10;
    opacity: 0;
  }
    
  canvas {
    position: fixed;
    left: 0;
    top: 0;
    z-index: -10;
    // opacity: 0;

    &#goods_canvas {
      // z-index: 2002;
      width: 375px;
      height: 570px;
      // opacity: 1;
    }

    &#goods_title_canvas {
      width: 250px;
      height: 30px;
      display: none;
    }

    &#goods_detail_canvas {
      width: 200px;
      height: 50px;
      display: none;
    }

    &#rmb_icon_cavas {
      width: 200px;
      height: 100px;
      display: none;
    }

    &#sale_price_canvas {
      width: 200px;
      height: 120px;
      display: none;
    }

    &#city_price_canvas {
      width: 180px;
      height: 110px;
      display: none;
    }
  }
}

.make_goodscode {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2001;
  width: 100%;
  height: 100%;

  .extend_show {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
    font-size: rem(18px);
    color: #fff;
    text-align: center;
    padding: rem(60px) 10% 10%;
    background-color: rgba(0,0,0,.65);

    > img {
      display: block;
      width: 85%;
      height: auto;
      margin: 0 auto;
    }

    > .show_spinner {
      width: 200px;
      margin: 60% auto 10%;

      > div {
        display: inline-block;
        width: 30px;
        height: 30px;
        border-radius: 100%;
        background-color: #ec5151;
        animation: bouncedelay 1.4s infinite ease-in-out;

        &.spinner_bounce1 {
          animation-delay: -0.32s;
        }

        &.spinner_bounce2 {
          animation-delay: -0.16s;
        }
      }
    }

    > p {
      line-height: rem(30px);
      text-shadow: 0 0 10px #f0f0f0;
      cursor: pointer;
    }
  }
}

@keyframes bouncedelay {
  0%, 80%, 100% {
    transform: scale(0.0);
    -webkit-transform: scale(0.0);
  } 40% {
    transform: scale(1.0);
    -webkit-transform: scale(1.0);
  }
}


/*商品二维码展示*/
.zrCanvasImg>img, .zrLineImg>img{ display: block;width: 100%;height: auto; }
.zrGoodsImg{
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1001;
    background-color: rgba(0,0,0,0.6);
}
.zrGoodsImg>div{
    width: 90%;
    height: 80%;
    margin: 0 auto;
    margin-top: 12%;
}
.zrCanvasImg{
  width: 85%;
  height: auto;
  margin: 0 auto;
  position: relative;
}
.zrSaveImg{
    width: 100%;
    height: 10%;
    line-height: 300%;
    text-align: center;
    text-shadow: 0 0 5px #000;
    position: fixed;
    color: #fff;
    letter-spacing: 2px;
    bottom: 8%;
    left: 0;
    font-size: 17px;
}
.zrLineImg{
    position: absolute;
    right: 4.5%;
    bottom: 18.5%;
    width: 37%;
    height: 1px;
    background-color: #ec5151;
    -webkit-animation: lineMove 2s 0s infinite linear both;
}
@-webkit-keyframes lineMove{
    0% {
        bottom: 38.5%;
    }
    90% {
        bottom: 18.5%;
    }
}
@media screen and (max-width:320px) and (max-height:480px){
    .zrGoodsImg>div{
        margin-top: 8%
    }
    .zrCanvasImg{
        width: 75%;
    }
    .zrSaveImg{
        bottom: 10.5%;
    }
    /*.zrLineImg{
        right: 7%;
        bottom: 27%;
    }
    @-webkit-keyframes lineMove{
        0% {
            bottom: 44%;
        }
        90% {
            bottom: 27%;
        }
    }*/
}
#zrGoodsCanvas{ display: none;position: fixed;left: 0;top: 0;z-index: 30;height: 570px;width: 375px }
#zrGoodsTitle{ width: 250px;height: 30px;display: none; }
#zrGoodsDetail{ width: 200px;height: 50px;display: none; }
#zrRmbIcon{ width: 200px;height: 100px;display: none; }
#zrSalePrice{ width: 200px;height: 120px;display: none; }
#zrCityPrice{ width: 180px;height: 110px;display: none; }
#zrQrCode{ width:130px; height:130px; margin-top:15px;display: none; }
/*商品二维码展示*/